//---------------------------------------------------------------------------

#ifndef BRONH
#define BRONH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Shablon.h"
#include <ActnList.hpp>
#include <DB.hpp>
#include <DBGrids.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include "DBCtrlsEh.hpp"
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrBRON : public TfrShablon
{
__published:	// IDE-managed Components
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TLabel *Label5;
	TLabel *Label6;
	TDBEdit *dbeNOM;
	TDBDateTimeEditEh *dtpNACH_BRON;
	TDBDateTimeEditEh *dtpKON_BRON;
	TDBEdit *dbeKOL_VIB;
	TDBEdit *dbeKOL_LG;
	TDBLookupComboBox *cbVID_BRON;
	TcxGroupBox *gbFIO_GILZI;
	TDBLookupComboBox *cbFIO1;
	TDBLookupComboBox *cbFIO2;
	TDBLookupComboBox *cbFIO3;
	TDBLookupComboBox *cbFIO4;
	TDBLookupComboBox *cbFIO5;
	TcxButton *btADD_GILZI;
	TIBCQuery *dsetBRON;
	TIBCQuery *dsetPROV;
	TIBCDataSource *dsBRON;
	TIBCDataSource *dsPROV;
	TAction *actESC;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dtpNACH_BRONKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpKON_BRONKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeKOL_VIBKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeKOL_LGKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbVID_BRONClick(TObject *Sender);
	void __fastcall AddExecute(TObject *Sender);
	void __fastcall SaveExecute(TObject *Sender);
	void __fastcall EditExecute(TObject *Sender);
	void __fastcall DeleteExecute(TObject *Sender);
	void __fastcall DBGrid1DblClick(TObject *Sender);
	void __fastcall DBGrid1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall btADD_GILZIClick(TObject *Sender);
	void __fastcall cbFIO1Click(TObject *Sender);
	void __fastcall cbFIO2Click(TObject *Sender);
	void __fastcall cbFIO3Click(TObject *Sender);
	void __fastcall cbFIO4Click(TObject *Sender);
	void __fastcall cbFIO5Click(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private:	// User declarations
public:		// User declarations
int NOM,Stat;
	__fastcall TfrBRON(TComponent* Owner);
	void __fastcall TfrBRON::Obnovi();
	void __fastcall TfrBRON::Refresh();
	void __fastcall TfrBRON::GILZI();
	int __fastcall TfrBRON::PROVERKA_NA_LG(int KOD_GILZA);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrBRON *frBRON;
//---------------------------------------------------------------------------
#endif
